package org.spawndb;

public class DBManagerFactory {

    protected static ISpawnDBManager dbmanager;

    public static ISpawnDBManager forClass(String className) throws Exception {
        if(dbmanager==null){
            dbmanager=(ISpawnDBManager) Class.forName(className).newInstance();
        }
        return dbmanager;
    }

    public static ISpawnDBManager getSpawnDBManager(){
        return dbmanager;
    }


    


}